﻿@model Comisiones.Models.Comercio

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Comercio</legend>

        @Html.HiddenFor(model => model.com_idComercio)

        <div class="editor-label">
            @Html.LabelFor(model => model.com_RUC)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.com_RUC)
            @Html.ValidationMessageFor(model => model.com_RUC)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.com_nombre)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.com_nombre)
            @Html.ValidationMessageFor(model => model.com_nombre)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
